package com.spingweb.mapper;


import com.spingweb.dto.BookAuthor;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface BookAuthorMapper {
    // boolean是标识操作是否成功。，
    boolean add(BookAuthor bookAuthor);

    boolean delete(String name);

    boolean update(BookAuthor bookAuthor);

    // 一般应用提供给用户更多的选择
    BookAuthor selectByName(String name);

    List<BookAuthor> selectByCountry(String country);

}
